import 'package:flutter/widgets.dart';
import 'package:flutter_demo/models/profile.dart';

import 'Global.dart';

class ProfileChangeNotifier extends ChangeNotifier {

  Profile get profile => Global.pro;

  @override
  void notifyListeners() {
    // 保存用户登录信息
    Global.setProfile();
    // 通知其他的类
    super.notifyListeners();
  }

}